Is it posible to share wp-supercache in different subdomains?

At work, we are trying to user wp-supercache to serve files for a page but we have different subdomains one for blog (or news) editors and admin and another for visitors and we need to make sure that whenever a editor or admin edit a post, the cache file for the visitos subdomain is also deleted.

For example If I edit the following post: If I go to the next url: https://visitors.l337blog.ninja/news/1-best-day-ever

The wp-supercache plugin creates the following cache file:

/data/wordpress/cache/supercache/visitors.l337blog.ninja/news/1-best-day-ever/index-https.html

And then when a editor of a admin edits the post, then the plugin searchs for the file at: /data/wordpress/cache/supercache/editors.l337blog.ninja/news/1-best-day-ever/index-https.html

But we also need that the first file get deleted.

Currently, we are considreing using a symbolic link from /data/wordpress/cache/supercache/editors.l337blog.ninja to /data/wordpress/cache/supercache/visitors.l337blog.ninja but it could not be an ideal solution beacause if you clear the cache, the symbolic link could also be deleted and it will not be present on an blog instance initialization.

so, how this behavior could be achieved?

Replay

Category: plugin wp supercache Time: 2016-07-29 Views: 0

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.240 (s). 12 q(s)