{"id":15488061,"url":"https://github.com/turtlepod/wp-file-cache","last_synced_at":"2025-04-14T01:20:49.309Z","repository":{"id":148966030,"uuid":"109154837","full_name":"turtlepod/wp-file-cache","owner":"turtlepod","description":"WP File Cache (Fix) ~ My fav way to debug cache, do no use on live site.","archived":false,"fork":false,"pushed_at":"2017-11-01T16:25:06.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-19T08:13:44.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/turtlepod.png","metadata":{"files":{"readme":"readme.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-01T16:23:01.000Z","updated_at":"2017-11-01T16:25:08.000Z","dependencies_parsed_at":"2023-05-02T23:48:54.360Z","dependency_job_id":null,"html_url":"https://github.com/turtlepod/wp-file-cache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtlepod%2Fwp-file-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtlepod%2Fwp-file-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtlepod%2Fwp-file-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turtlepod%2Fwp-file-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turtlepod","download_url":"https://codeload.github.com/turtlepod/wp-file-cache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248805264,"owners_count":21164259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T07:00:26.519Z","updated_at":"2025-04-14T01:20:49.275Z","avatar_url":"https://github.com/turtlepod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"=== WP File Cache ===\nContributors: vladimir_kolesnikov\nDonate link: http://blog.sjinks.pro/feedback/\nTags: cache, object cache, performance, file cache\nRequires at least: 2.6\nTested up to: 3.1\nStable tag: 1.2.9.1\n\nPersistent caching using files. WARNING: PHP 5.1.6 or newer is required.\n\nDOES NOT support WordPress MultiSite.\n\n== Description ==\n\nThe plugin implements object level persistent caching and can be used instead of the built in WordPress `WP_Object_Cache`.\nUnlike WP Super Cache, Hyper Cache and other plugins, WP File Cache does not cache the entire page; instead, it caches the data WordPress explicitly asks it to cache (using `wp_cache_xxx()` API functions).\nAlthough this means that the performance will be less than with, say, WP Super Cache, all your pages remain dynamic.\nWP File Cache won't help you much if the plugins or theme you are using do not use WordPress Cache API. This is by design, since the plugin tries to play nice. However, for most WordPress installations this will not be critical.\n\nWP File Cache significantly reduces the load from your database. Say, my blog's home page without the plugin executes 24 queries (0.02403 sec); with the plugin enabled, only 4 queries (0.00188 sec).\nUnlike DB Cache/DB Cache Reloaded, the plugin will work in the Admin Panel and supports all plugins that use WordPress Cache API.\n\nPlease note that WP File Cache shifts the load from your database to your disk/file system and if Disk I/O is a bottleneck, file based caches will not help you.\n\nTo get the maximum cache performance, please disable `open_basedir` in your `php.ini` — it really slows the things down.\n\nWARNING: chances are that the plugin will not work when PHP safe mode is enabled and web server is operated by a different user than owns the files.\n\n== Installation ==\n\n1. Upload `wp-file-cache` folder to the `wp-content/plugins/` directory.\n1. Please make sure that `wp-content` directory is writable by the web server: the plugin will need to copy `object-cache.php` file into it.\n1. Activate the plugin through the 'Plugins' menu in WordPress.\n1. Make sure that `wp-content/object-cache.php` file exists. If it is not, please copy it from `wp-content/plugins/wp-file-cache/object-cache.php`\n1. `wp-content/object-cache.php` file wust me writable by the server since plugin stores its options in that file.\n1. That's all :-)\n\n== wp-config.php Magic Constants ==\n\nThere is one magic constant, `WP_FILE_CACHE_LOW_RAM`. When `ini_get('memory_limit') - memory_get_usage()` becomes less than `WP_FILE_CACHE_LOW_RAM`, caching gets partially disabled.\nThis means that the data that are available in the memory cache will still be used but no reads from the files will be performed. This can be useful when you get Out of Memory errors in `class.FileCache.php`.\n\nBy default this feature is turned off but you can enable it with defining\n\n`define('WP_FILE_CACHE_LOW_RAM', '4M');`\n\nRepleace `4M` with your value.\n\n== Deactivation/Removal ==\n\n1. Please make sure that `wp-content` directory is writable by the web server: the plugin will need to delete `object-cache.php` from it.\n1. Deactivate/uninstall the plugin through the 'Plugins' menu in WordPress.\n1. Please verify that `wp-content/object-cache.php` file was removed.\n\n== Frequently Asked Questions ==\n\n= After activating the plugin I see an error: \"Warning: file_exists(): open_basedir restriction in effect. File(`filename`) is not within the allowed path(s)\". What to do? =\n\nA1: Try to get rid of `open_basedir` form your php.ini/Apache config. `open_basedir` is considered a \"broken\" security measure anyway and only slows down file operations.\n\nA2: If disabling `open_basedir` is not an option, set the `Cache location` under the Settings \u003e WP File Cache Options to the directory that satisfies the `open_basedir` restriction.\n\n= The plugins does not work with Custom Field Template plugin. =\n\nThis is because Custom Field Template maintains its own cache for the post meta data which gets out of sync with WordPress cache. Please add `cft_post_meta` to the list of the non-persistent groups (Settings \u003e WP File Cache Options)\n\n== Changelog ==\n= 1.2.9.1 (Dec 16, 2010) =\n* Fixed stupid bug\n\n= 1.2.9 (Dec 15, 2010) =\n* Ability to disable caching when memory is low\n\n= 1.2.8.2 (Apr 8, 2010) =\n* Suppress 'stat failed' warning for `filemtime`\n\n= 1.2.8.1 (Apr 7, 2010) =\n* Save options bug fix\n\n= 1.2.8 (Mar 27, 2010) =\n* Added Ukrainian translation (props [Andrey K.](http://andrey.eto-ya.com/))\n* Fixed typos in readme.txt\n\n= 1.2.7 (Mar 12, 2010) =\n* Option to always use fresh data in the Admin Panel\n* Added Belarussian translation (props [Antsar](http://antsar.info/))\n\n= 1.2.6 (Mar 6, 2010) =\n* Updated FAQ\n* Added an experimental option to partially disable the cache in the Admin panel\n\n= 1.2.5 (Feb 15, 2010) =\n* Data to be cached are not passed by reference anymore to ensure there are no side effects\n* Objects are cloned before caching to avoid any side effects\n\n= 1.2.4 (Feb 14, 2010) =\n* Fixed wrong directory name\n\n= 1.2.3 (Feb 12, 2010) =\n* readme.txt bug fix\n\n= 1.2.2 (Feb 12, 2010) =\n* Compatibility with WP 3.0\n\n= 1.2.1 (Jan 14, 2010) =\n* optimized the code, speeded up `FileCache` class methods by moving all sanity checks to `wp_cache_xxx()` functions\n* file lock on write\n* less system calls are used\n* compatibility with WordPress 2.6\n* plugin won't cause WSoD if the plugin is deleted but wp-content/object-cache.php file is not\n\n= 1.1 (Dec 19, 2009) =\n* Fixed serious floating bug in `FileCache::get()`\n\n= 1.0 (Dec 2, 2008) =\n* Really do not remember\n\n= 0.2.1 (Jun 12, 2008) =\n* First public release\n\n== Screenshots ==\n\nNone\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturtlepod%2Fwp-file-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturtlepod%2Fwp-file-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturtlepod%2Fwp-file-cache/lists"}