Hi Ramon(?),
Let me first tell you that the plugin is in it’s very first state of development. This means there are some functionalities to come that I have in mind.
Thank you for your post. You just made my ToDo list a bit longer. ??
In short:
– Not yet
– Not yet. An admin page still has to be created. Making it able to enable/disable gZip compression, adjust the cache lifetime, set a parameter to view a page uncached, exclude pages from cache, and of course the ability to clear all cache.
– Pages are cached 60 minutes by default (adjust one of the first lines of the plugin file to change this for now). When a $_POST is detected (new post, new comment, etc.) the cache is cleared.
– Good point. I just realized I don’t have an uninstall hook yet. But when the plugin is de-installed, no cache pages will be served to your visitors nor you. To clear all cache at once while running the plugin, you can add the ?clear_lsd_simple_cache=1 to your URL to delete all cache and it’s folders from the wp-content/uploads folder. So that would be https://www.example.com/?clear_lsd_simple_cache=1.
– A <!–HTML Comment–> is placed at the end of the file to show you you are viewing a cached version of the page. You can check the HTML source on my personal website as an example. (The last line would say <!– Cached by LSD Simple Cache –>).
Thank you for the feedback and inspirational questions!