Title: WP_SQLITE_OBJECT_CACHE_DB_FILE partially working
Last modified: June 26, 2024

---

# WP_SQLITE_OBJECT_CACHE_DB_FILE partially working

 *  Resolved [wpshushu](https://wordpress.org/support/users/wpshushu/)
 * (@wpshushu)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wp_sqlite_object_cache_db_file-partially-working/)
 * I added this into wp-config.php
 *     ```wp-block-code
       define( 'WP_SQLITE_OBJECT_CACHE_DB_FILE', '/tmp/mysite-object-cache.sqlite' );
       ```
   
 * one .sqlite file under /tmp/ does appear (with random salt in the middle of the
   file name), but it’s a small file, the big files located under wp-content/ are
   still growing. There are 4 sqlite related files under wp-content/ with old names:
 * .ht.object-cache.salt.sqlite
 * .ht.object-cache.salt.sqlite-shm
 * .ht.object-cache.salt.sqlite-wal
 * .ht.object-cache.sqlite
 * How can I move all of them to /tmp/?
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [wpshushu](https://wordpress.org/support/users/wpshushu/)
 * (@wpshushu)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wp_sqlite_object_cache_db_file-partially-working/#post-17853199)
 * I deactivated the plugin, deleted .sqlite files under wp-content, reactivated
   the plugin, now files are created under /tmp/ – as expected.
 *  Plugin Author [OllieJones](https://wordpress.org/support/users/olliejones/)
 * (@olliejones)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wp_sqlite_object_cache_db_file-partially-working/#post-17854117)
 * Thanks for the feedback.
 * Notice that some operating systems, Linux Ubuntu in particular, have a feature
   to automatically create subdirectories under /tmp/ to give an extra measure of
   security.
 *  Thread Starter [wpshushu](https://wordpress.org/support/users/wpshushu/)
 * (@wpshushu)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wp_sqlite_object_cache_db_file-partially-working/#post-17855160)
 * [@olliejones](https://wordpress.org/support/users/olliejones/) I configured the
   files to be directly under /tmp/, is it better to put it under a subdirectory?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WP_SQLITE_OBJECT_CACHE_DB_FILE partially working’ is closed to new replies.

 * ![](https://ps.w.org/sqlite-object-cache/assets/icon-128x128.jpg?rev=2829632)
 * [SQLite Object Cache](https://wordpress.org/plugins/sqlite-object-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sqlite-object-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sqlite-object-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/sqlite-object-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sqlite-object-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sqlite-object-cache/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [wpshushu](https://wordpress.org/support/users/wpshushu/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/wp_sqlite_object_cache_db_file-partially-working/#post-17855160)
 * Status: resolved