Coder Social home page Coder Social logo

digitalbutter / modx-mirror Goto Github PK

View Code? Open in Web Editor NEW
49.0 49.0 8.0 520 KB

The Mirror plugin helps you to develop MODX websites faster. It synchronizes elements (templates, chunks, plugins and snippets) from filesystem with database and reverse.

PHP 100.00%

modx-mirror's People

Contributors

digibutt avatar eprochasson avatar grachov avatar thechunk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

modx-mirror's Issues

Caching is broken

Enabling this plugin has caused almost all cache files to be deleted immediately after creation, forcing MODx to re-generate the resources for each request.

Disabling the plugin solves the issue.

Please add a license

Hi! Thank you for this great plugin. Could you please add a license to it so people will know what they're allowed to do with it? Thanks.

Image Redirect Issue

Hey Andrey,

Just had a weird thing happen to me when using Mirror with a 404 image on the home page.

Problem

Basically what was happening was the home page had a missing image on it (which can happen from time to time). MODX be default will then try to serve the 404 page which in this case was the home page. Now when this behavior is coupled with Mirror flushing the cache on every request it actually caused my laptop to fully crash under the weight of around 100 Apache processes. Effectively it would keep going until my computer ran out of RAM.

I don't think this should be fixed by adding a break to detect that an image is being referenced and not clear the cache. I think we should completely revisit how the cache gets cleared.

My suggestion:

Create a setting in Mirror that is a parameter it looks for in the request. We can default this to flush. Then when you want to clear the pages add ?flush=1 to the request string.

Anyone have any other ideas?

Ed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.