Git Product home page Git Product logo

nested-cache's Introduction

Nested Object Cache for Wordpress

Providing a universal cache system with monitoring, resource awareness and much more.

BEWARE This is not ready for production yet.

Installation

As for now, this project is under development. Installation steps will be considered later.

git clone https://github.com/LupusMichaelis/wp-nested-cache.git
cd wp-nested-cache
./bin/session init
./bin/session release

If using Docker isn't an option for you, you need:

  • PHP 7.3 or better
  • composer 1.10 or higher

And run the following commands:

composer install --no-dev
php bin/build-phar.php

The file ./build/object-cache.phar should then be copied in the wp-content of your WordPress instance, then create the object-cache.php file that will load everything.

echo '<?php include '\''object-cache.phar'\'';' > wp-content/object-cache.php

Developer onboarding

This project's using Docker and Composer to manage its workflow. Scripts are provided to help you in running tests, building the release, etc.

Those containers mounts you current working direcory into the containter at /home/anvil. Files created should belong to you and not mess with your filesystem.

First you have to initialize the project. This will create a .env file at the root of the project, in order to provide the Docker images with the data they require to not mess with your filesystem. Please follow steps described in the installation section.

A typical developer workflow will look like to that:

# The first time, it's a good idea to install dependencies
./bin/session composer install --dev

# Lauch phpunit-watcher (with code coverage)
./bin/session composer jon

# Generates documentation on demand
./bin/session composer doc

# Gives a interactive PHP shell inside the container
./bin/session php -a

Please note that, if you run jon in a terminal, and don't quit it, subsequent calls through ./bin/session will be done in the same container, to the exception of release.

The release session run a separate container that will only mount the ./build directory to write the PHAR file in it. This is to avoid development requirements and artefacts to be embeded into the release.

nested-cache's People

Contributors

lupusmichaelis avatar

Watchers

 avatar  avatar

nested-cache's Issues

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.