Title: First feedback
Last modified: June 23, 2017

---

# First feedback

 *  [Nazar Hotsa](https://wordpress.org/support/users/bugnumber9/)
 * (@bugnumber9)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/first-feedback/)
 * Hello Derrick,
 * I’m an early adopter of things like this, so I ran some tests on several ‘lower
   end’ shared hosting accounts. That said, I have to admit that you did a great
   job!
    So far your plugin performs amazingly well.
 * Just a few things to clarify.
 * I see that you’re using WP_CACHE_KEY_SALT and you set it to empty string if it’s
   not defined otherwise in wp-config.php
    What’s the reason of using salt for disk-
   based object caching? If this for WP Network? Or for those setups where several
   WP installs use the same database with different table prefixes?
 * How is cache pruning performed when WP_FOCUS_MAXTTL is reached? Is there a WP
   cron job that prunes files? If that’s the case – will it still work w/o issues
   when the ‘native’ WP cron is disabled and an external one is being used?
 * Since any object caching takes care of transients, I believe you can add a note
   to plugin docs about deleting all transients from wp_options. Ideally, there 
   can be a button on plugin settings page to do this 😉
 * Finally, I’d rather put a single .htaccess file in /wp-content/focus-object-cache/
   folder to protect files from public access rather than zero-length index.php.
   Or even (not sure if it’s possible though) move /focus-object-cache/ one level
   up the public_html.
 * Thanks again for your great work!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Derrick Tennant](https://wordpress.org/support/users/emrikol/)
 * (@emrikol)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/first-feedback/#post-9263298)
 * Hi! Thanks for the great feedback. I appreciate you taking the time to look into
   the plugin 🙂
 * > I see that you’re using WP_CACHE_KEY_SALT and you set it to empty string if
   > it’s not defined otherwise in wp-config.php
   >  What’s the reason of using salt
   > for disk-based object caching? If this for WP Network? Or for those setups 
   > where several WP installs use the same database with different table prefixes?
 * It’s left over from much earlier development. I don’t think it’s needed anymore
   and I’ll remove it. ([GitHub Issue](https://github.com/emrikol/focus/issues/12))
 * > How is cache pruning performed when WP_FOCUS_MAXTTL is reached? Is there a 
   > WP cron job that prunes files?
 * There’s a [GitHub issue](https://github.com/emrikol/focus/issues/9) to add a 
   cron job to purge expired data for v1.1.
 * > If that’s the case – will it still work w/o issues when the ‘native’ WP cron
   > is disabled and an external one is being used?
 * If you mean using `define('DISABLE_WP_CRON', true);` and triggering the WordPress
   core cron externally, then it should still work since the cron jobs should still
   run.
 * > Since any object caching takes care of transients, I believe you can add a 
   > note to plugin docs about deleting all transients from wp_options.
 * I added a [GitHub issue](https://github.com/emrikol/focus/issues/13) to add documentation
   about that.
 * > Ideally, there can be a button on plugin settings page to do this 😉
 * Another [GitHub issue](https://github.com/emrikol/focus/issues/14) for a potential
   future enhancement to purge database transients.
 * > Finally, I’d rather put a single .htaccess file in /wp-content/focus-object-
   > cache/ folder to protect files from public access rather than zero-length index.
   > php.
 * Good idea. I personally use nginx, but adding the `.htaccess` file shouldn’t 
   cause any issues. I’ll also try to add other instructions for nginx on how to
   disable access to the directory. ([GitHub Issue](https://github.com/emrikol/focus/issues/15))
 * > Or even (not sure if it’s possible though) move /focus-object-cache/ one level
   > up the public_html.
 * Added a [GitHub issue](https://github.com/emrikol/focus/issues/16) to work on
   the ability to change the cache directory.
 * Hopefully that provides an answer to all of the feedback, but if not, just let
   me know.

Viewing 1 replies (of 1 total)

The topic ‘First feedback’ is closed to new replies.

 * ![](https://ps.w.org/focus-object-cache/assets/icon-256x256.png?rev=1683656)
 * [FOCUS Cache](https://wordpress.org/plugins/focus-object-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/focus-object-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/focus-object-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/focus-object-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/focus-object-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/focus-object-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Derrick Tennant](https://wordpress.org/support/users/emrikol/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/first-feedback/#post-9263298)
 * Status: not resolved