Skip to content
This repository was archived by the owner on Jan 3, 2019. It is now read-only.

Add caching modules to 8.x #16

Merged
merged 1 commit into from
Aug 13, 2015
Merged

Add caching modules to 8.x #16

merged 1 commit into from
Aug 13, 2015

Conversation

lazyfrosch
Copy link
Contributor

Recommended for local caching is APCu, and memcached or redis to cache for multiple instances.

See docs for how to use it:
https://doc.owncloud.org/server/8.1/admin_manual/configuration_server/config_sample_php_parameters.html#memory-caching-backend-configuration

fixes #15

Note: OwnCloud could utilize APCu, and memcached as fallback, I don't think need to add something there.
Note 2: APCu is still considered "beta", but still recommended by upstream. And even included in Debian (stable).

# PECL extensions
RUN pecl install APCu-beta && echo extension=apcu.so > /usr/local/etc/php/conf.d/apcu.ini \
&& pecl install redis && echo extension=redis.so > /usr/local/etc/php/conf.d/redis.ini \
&& pecl install memcached && echo extension=memcached.so > /usr/local/etc/php/conf.d/memcached.ini
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should swap the echoes for docker-php-ext-enable apcu redis memcached (docker-php-ext-enable).

@yosifkit
Copy link
Member

Just the comment above and one question: should this be added to 8.0 as well?

Recommended for local caching is APCu, and memcached or redis to cache for multiple instances.

See docs for how to use it:
https://doc.owncloud.org/server/8.1/admin_manual/configuration_server/config_sample_php_parameters.html#memory-caching-backend-configuration

fixes #15
@lazyfrosch
Copy link
Contributor Author

Updated, I forgot to push 8.0

From what I understood in the docs, only one caching mode is available and APCu should be preferred.

@yosifkit
Copy link
Member

LGTM

@tianon
Copy link
Member

tianon commented Aug 13, 2015

LGTM, thanks!

tianon added a commit that referenced this pull request Aug 13, 2015
Add caching modules to 8.x
@tianon tianon merged commit 9f0666b into docker-library:master Aug 13, 2015
@lazyfrosch lazyfrosch mentioned this pull request Aug 15, 2015
tianon added a commit to infosiftr/stackbrew that referenced this pull request Aug 17, 2015
- `cassandra`: `--link` for seeding (docker-library/cassandra#21)
- `drupal`: update Drupal 7 to use PHP 5.6 (docker-library/drupal#9)
- `elasticsearch`: minor template updates (docker-library/elasticsearch#45)
- `logstash`: add 1.4 as a supported version (docker-library/logstash#21)
- `mariadb`: add `initdb` directory support (MariaDB/mariadb-docker#18)
- `owncloud`: 8.0.6, caching modules (docker-library/owncloud#16)
- `percona`: add `initdb` directory support (docker-library/percona#6)
@nterray
Copy link

nterray commented Jan 3, 2016

Hi,

After adding 'memcache.local' => '\OC\Memcache\APCu', to the file config.php, I have to apt-get install php5-apcu on the container in order to be able to use APCu. Is it the intended behavior? Did I miss something?

Regards,
Nicolas

RichardScothern pushed a commit to RichardScothern/official-images that referenced this pull request Jun 14, 2016
- `cassandra`: `--link` for seeding (docker-library/cassandra#21)
- `drupal`: update Drupal 7 to use PHP 5.6 (docker-library/drupal#9)
- `elasticsearch`: minor template updates (docker-library/elasticsearch#45)
- `logstash`: add 1.4 as a supported version (docker-library/logstash#21)
- `mariadb`: add `initdb` directory support (MariaDB/mariadb-docker#18)
- `owncloud`: 8.0.6, caching modules (docker-library/owncloud#16)
- `percona`: add `initdb` directory support (docker-library/percona#6)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support redis / memcached?
4 participants