Comments (7)
Thanks for your report! I wouldn't necessarily call this a conflict, but just something that needs to be considered when using caching.
TablePress can indeed clear the cache of a caching plugin (and it does that for three commonly used caching plugins). However, from what I can see from a quick glance at the Quick Cache plugin page, it only seems to have a "mini-API" to prevent caching on a page. That's obviously not what we want. Do you maybe know if there also a function to clear the Quick Cache cache?
from tablepress.
Wow, what a quick response! I was thinking the same, if there is or not a cache invalidate for a certain group or pages, or something like that. I don't know. I'm gonna search a little.
What I know is the following, which appears in Quick Cache WP settings page:
Developing a Theme or Plugin for WordPress?
Tip: Quick Cache can be disabled temporarily. If you're a theme/plugin developer, you can set a flag within your PHP code to disable the cache engine at runtime. Perhaps on a specific page, or in a specific scenario. In your PHP script, set: $_SERVER['QUICK_CACHE_ALLOWED'] = FALSE;
or define('QUICK_CACHE_ALLOWED', FALSE)
. Quick Cache is also compatible with: define('DONOTCACHEPAGE', TRUE)
. It does't matter where or when you define one of these, because Quick Cache is the last thing to run before script execution ends.
Writing "Advanced Cache" Plugins Specifically for Quick Cache
Theme/plugin developers can take advantage of the Quick Cache plugin architecture by creating PHP files inside this special directory: /wp-content/ac-plugins/
. There is an example plugin file @ GitHub (please review it carefully and ask questions). If you develop a plugin for Quick Cache, please share it with the community by publishing it in the plugins respository at WordPress.org.
Why does Quick Cache have it's own plugin architecture? WordPress loads the
advanced-cache.php
drop-in file (for caching purposes) very early-on; before any other plugins or a theme. For this reason, Quick Cache implements it's own watered-down version of functions likeadd_action()
,do_action()
,add_filter()
,apply_filters()
.
from tablepress.
No problem! :-)
Yes, that's also the information that I found, but that's not really what we should be doing here. There's no need to prevent caching on pages with tables at all. What we would need is a method to flush the cache whenever a table is edited (that's also what the plugin does with the other caching plugins).
from tablepress.
What about this? https://github.com/WebSharks/Quick-Cache/wiki/Clearing-the-Cache-Dynamically
It seems to clear all the cache, but appears to be the only method available.
from tablepress.
That's perfect! Nice find! I'll add that to TablePress shortly.
from tablepress.
Thank you very much @TobiasBg
from tablepress.
No problem, you are very welcome! :-) Good to hear that this will be helpful!
If you want, you can benefit from this by installing TablePress 1.4 again from a fresh download, where I just added this feature, too.
from tablepress.
Related Issues (20)
- Support for importing with semi-colon separated values HOT 2
- Table shows Right to Left HOT 1
- Special html characters are not escaped HOT 5
- Add extension HOT 1
- Cross‑Site Scripting (XSS) - Table Content HOT 3
- Import from zip file with CSV files - mapping to table ids HOT 5
- Exporting a table in Tablepress does not include options such as for DataTables HOT 1
- Accessibility - Sorting HOT 3
- Add original post ID to `column_cb` HOT 6
- Replace jQuery.ready with window.onload HOT 3
- Have TablePress show pages a table is embedded on HOT 1
- Sorting issues with DD/MM/YYYY HOT 10
- Vanilla JS HOT 7
- Tablepress custom css not working HOT 1
- Add Custom Endpoint for TablePress tables using the WP REST API HOT 9
- Responsive Table extension is triggering datatables HOT 2
- column_default missing in TablePress_Editor_Button_Thickbox_List_Table HOT 4
- Editor page hangs browser when table has many rows (~1000) HOT 1
- Cross site scripting HOT 2
- Table cross the maximum size of template HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tablepress.