Giter VIP home page Giter VIP logo

akamai's Introduction

Akamai

https://www.drupal.org/project/akamai

This module provides a Drupal service to interact with the Akamai Content Control Utility.

While the service can be used by developers in isolation, most users should install the Purge module. Purge will take care of invalidating caches automatically when content is updated.

It incorporates the AkamaiOPEN-edgegrid-php library.

Latest Documentation

Please visit the Drupal docs for Akamai.

Installation and configuration

Download the module with drush or otherwise, add it to the modules folder.

You will need to download [akamai-open/edgrid-client](https://packagist.org/packages/akamai-open/edgegrid- client). The recommended way to do that is by installing Composer Manager, and following its instructions to update your site's vendor directory.

With Purge

Make sure purge_ui is enabled.

Go to admin/config/development/performance/purge and enable the Akamai Purger in the list of Purger plugins.

Configure your Akamai credentials via the 'Config' dropdown in the Purge UI interface.

Without Purge

Go to /admin/config/akamai/config and enter your Akamai credentials.

Go to /admin/config/akamai/cache-control to clear URLs manually.

Akamai Credentials

Follow the instructions here to set up the client credentials. https://developer.akamai.com/introduction/Prov_Creds.html

You will need admin access to the Luna control panel to create credentials.

Using an .edgerc File

You can store an .edgerc file on the server and reference the path in /admin/config/akamai/settings. It should match this format:

[default]
host = akaa-baseurl-xxxxxxxxxxx-xxxxxxxxxxxxx.luna.akamaiapis.net/
access_token = akab-access-token-xxx-xxxxxxxxxxxxxxxx
client_token = akab-client-token-xxx-xxxxxxxxxxxxxxxx
client_secret = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
max-size = 2048

Using the Key Module

Alternatively, you can use the key module to set API credentials. Create Authentication keys at /admin/config/system/keys. Then go to /admin/config/akamai/settings and specify the corresponding key for your access token, client token, and client secret.

Usage

With Purge

You will need to make sure that you have necessary Purge plugins enabled and configured:

  • a queuer (at present, purge_queuer_url is the only queuer supported by this module)
  • a queue
  • a processor

Purge will queue URLs that need to be cleared from Akamai automatically.

Without Purge

There are two ways to clear URLs without Purge:

  1. Via the form at admin/config/akamai/cache-clear, which allows you to enter lists of URLs to clear.
  2. You can enable a block, 'Akamai Cache Clear', which will allow you to clear the page you are currently viewing.

akamai's People

Contributors

cam8001 avatar neetumorwani avatar pobtastic avatar widgetsburritos avatar bighappyface avatar nerdstein avatar naveenvalecha avatar dksdev01 avatar weitzman avatar alexpott avatar scrutinizer-auto-fixer avatar

Watchers

 avatar

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.